<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1" charset="utf-8">
    <link rel="stylesheet" href="../javascripts/lib/jqm/jquery.mobile-1.4.3.min.css"/>
    <link rel="stylesheet" href="../stylesheets/main.css"/>
    <script src="../javascripts/lib/jq/jquery-2.1.1.min.js"></script>
    <script src="../javascripts/lib/jqm/jquery.mobile-1.4.3.min.js"></script>
    <script src="../javascripts/lib/jq/date-utils.min.js"></script>
    <title><%= title %></title>
</head>
<body>
<div class="a" data-role="page" id="page">
    <script type="text/javascript">
    </script>
    <div data-role="header" id="header">
        <a class="ui-btn ui-icon-back ui-btn-icon-left" href="#pageone">返回</a>
        <h1>结算记录</h1>
    </div>
    <div data-role="content" data-theme="c">
        <ul id="listview" data-role="listview" data-inset="true">
            <% if(payoffs.length > 0){ %>
            <% payoffs.forEach(function(payoff){ %>
            <li>
                <div class="payoff_row">
                    <label style="float: left;font-size:110%">
                        <%= payoff.payoff_date.toFormat('YYYY-MM-DD') %>
                    </label>
                    <label style="float: right;font-size:110%">结算金额<%= payoff.income %></label>
                </div>
            </li>
            <% }); %>
            <% }else{ %>
            <li style="text-align: center;font-size: 120%;">
                您目前没有结账单!!
            </li>
            <% } %>
        </ul>
    </div>
</div>
</body>
</html>